<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Allwees – Good stuff with decent price</title>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="allwees, Social Shopping, Faster Shipping, Group Buying, Accessories, Women's Clothing, Men's Clothing, Men's Shoes, Women's Shoes">
    <meta name="description" content="Allwees – Good stuff with decent price">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
            background: #f7f7f7;
        }
        * {
            margin: 0;
            padding: 0;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }
        html {
            min-width: 320px;
        }
        ol,ul,dl,p {
            margin-top: 0;
            margin-bottom: 0;
        }
        a {
            text-decoration: none;
            cursor: pointer;
        }
        h5 {
            margin: 10px 0;
        }
        .padding {
            padding: 0 10px;
        }
        .tc {
            text-align: center;
        }
        .tr {
            text-align: right;
        }
        a.button {
            display: block;
            width: 60%;
            margin: 20px auto;
            border: 1px solid #2fb7ec;
            border-radius: 3px;
            font-size: 18px;
            text-align: center;
            height: 40px;
            line-height: 40px;
            color: #2fb7ec;
            font-weight: 500;
        }
        .logo {
            display: block;
            text-align: center;
            padding: 20px 0 10px;
        }
        .logo img {
            width: 160px;
            cursor: pointer;
        }
        .tip {
            background: linear-gradient(#4cc8f8,#1698ca);
            padding: 10px;
        }
        .tip a {
            color: white;
            cursor: pointer;
        }
        .view {
            border: 1px dashed #2fb7ec;
            margin: 10px 0;
        }
        .view-content {
            padding: 20px 10px;
        }
        .view-content p{
            color: #666;
            word-break: break-all;
        }
        .line{
            border-bottom: 1px dashed #2fb7ec;
            margin: 10px;
        }
        .p-info {
            margin: 20px 0;
        }
        table {
            width: 100%;
        }
        table img {
            width: 100%;
        }
        .mainPhoto {
            width: 230px;
        }
        .product {
            width: 350px;
            padding-left: 10px;
        }
        .product-info {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .cash-refer {
            margin-bottom: 30px;
        }
        .cash  {
            width: 300px;
        }
        .refer {
            width: 280px;
            padding: 10px 20px;
        }
        .refer .button {
            margin: 20px 0 !important;
        }
        @media (min-width: 600px) {
            .main-container {
                width: 600px;
                margin: 0 auto;
            }
        }
        @media (max-width: 600px) {
            .main-container {
                width: 100%;
            }
            html,body {
                font-size: 10px;
            }
            .view {
                margin: 10px;
            }
            a.button {
                width: 70%;
                font-size: 12px;
                height: 30px;
                line-height: 30px;
                margin: 10px auto;
            }
            .mainPhoto {
                width: 40vw;
            }
            .product {
                width: 50vw;
            }
            .cash-refer {
                padding: 0 10px;
            }
            .cash {
                width: 48vw;
            }
            .refer {
                width: 46vw;
                padding: 10px;
            }
        }
    </style>
</head>
<body>
<div class="main-container">
    <a class="logo" href="https://www.allwees.com" target="_blank">
        <img src="https://prod-files-o.oss-us-west-1.aliyuncs.com/category/2020/logo.png" alt="logo">
    </a>
    <div class="tip">
        <a href="https://www.allwees.com/account/refer" target="_blank">Earn up to $100 for referring friends. Share your code!</a>
    </div>
    <div class="view">
        <div class="view-content">
            <p class="tc">Hi ${userName},</p>
            <p class="p-info tc">Great news! Your order is now confirmed. We will email you again when your items ship.</p>
            <p class="tc">Thanks for shopping with us!</p>
        </div>
        <div class="line"></div>
        <div class="view-content">
            <h3 class="tc">Order ID: ${order.no}</h3>
            <h5 class="tc">Shipping Address:</h5>
            <p class="tc">${order.shippingAddress.firstName} ${order.shippingAddress.lastName}</p>
            <p class="tc">${order.shippingAddress.addressLine1!''},${order.shippingAddress.addressLine2!''}
                ,${order.shippingAddress.city!''}/${order.shippingAddress.province!''},United
                States,${order.shippingAddress.zipCode!''}</p>
            <p class="tc">${order.shippingAddress.phone!''}</p>
        </div>
        <div class="line"></div>
        <div class="view-content">
            <table class="payment" border="0">
                <tr>
                    <th>Payment Method:</th>
                    <th>Payment Details:</th>
                </tr>
                <tr>
                    <td>
                        <p class="tc">${order.paymentType}</p>
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td>Item Total</td>
                                <td class="tr">${order.amtProduct}</td>
                            </tr>
                            <tr>
                                <td>Shipping</td>
                                <td class="tr">${order.amtShipping}</td>
                            </tr>
                            <!--
                                 <tr>
                                    <td>Promo Code {{code}}</td>
                                    <td class="tr">{{cash}}</td>
                                 </tr>
                             -->
                            <tr>
                                <td>Allwees Cash</td>
                                <td class="tr">${order.amtCash}</td>
                            </tr>
                            <tr>
                                <td>Order Total</td>
                                <td class="tr">${order.amt}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="line"></div>
        <div class="view-content">
            <table border="0">
                <#if (order.items)??>
                    <#list order.items as item>
                        <tr>
                            <td>
                                <a href="https://www.allwees.com/product/info/${item.productUuid}" target="_blank">
                                    <img src="${item.product.mainPhoto}" alt="5blew">
                                </a>
                            </td>
                            <td>
                                <div class="product">
                                    <p class="product-info">${item.product.name}</p>
                                    <p class="product-info">Color: ${item.sku.color}</p>
                                    <p class="product-info">Size: ${item.sku.size}</p>
                                    <p>Quantity: ${item.quantity}</p>
                                    <p class="product-info">Shipping: ${item.amtShipping}</p>
                                    <p>Cost: ${item.amt}</p>
                                    <p class="product-info">Status: <span style="color: #2fb7ec">Processing Order</span>
                                    </p>
                                </div>
                            </td>
                        </tr>
                    </#list>
                </#if>
            </table>
        </div>
        <div class="more tc">Need more info?</div>
        <a class="button" href="https://www.allwees.com/order/info/${order.uuid}" target="_blank">View Order</a>
    </div>
    <div class="cash-refer">
        <table border="0">
            <tr>
                <td>
                    <div class="cash">
                        <img src="https://prod-files-o.oss-us-west-1.aliyuncs.com/category/2020/cash.png" alt="cash">
                    </div>
                </td>
                <td>
                    <div class="refer">
                        <h3>Earn up to $100 for referring friends.</h3>
                        <p>Share your code!</p>
                        <a class="button" href="https://www.allwees.com/account/refer" target="_blank">Refer a friend</a>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>